<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login Check</title>
</head>
<body>

<h3>登录</h3>
    <form action="check cooker.jsp" method="post"> 
        <label for="cooker_id">用户ID:</label>
        <input type="text" id="cooker_id" name="cooker_id" required><br> 
        <label for="pwd">密码:</label>
        <input type="password" id="password" name="password" required><br> 
        <input type="submit" name="btn" value="登录"><br> 
        <script>
    var userRadio = document.getElementById('user');
    var adminRadio = document.getElementById('admin');


    userRadio.addEventListener('change', function() {
        if (this.checked) {
            alert('kitchen.jsp');
      
        }
    });

    adminRadio.addEventListener('change', function() {
        if (this.checked) {
            
            alert('');
        }
    });
</script>
</body>
</html>
